package F;

/**
 * 全能运动员
 */
public class AllroundAthlete extends Athlete implements Diver,Sprint,Shoot{
    public AllroundAthlete(){}
    public AllroundAthlete(String name,int age){
        super(name,age);
    }
    @Override
    public void diver() {
        System.out.println(this.getName()+this.getAge()+"擅长游泳");
    }

    @Override
    public void shoot() {
        System.out.println(this.getName()+this.getAge()+"擅长射击");
    }

    @Override
    public void sprint() {
        System.out.println(this.getName()+this.getAge()+"擅长短跑");
    }
}
